package com.extend_;

public class Extends01 {
    public static void main(String[] args) {
        Pupil pupil = new Pupil();
        pupil.name = "小明";
        pupil.age = 13;
        pupil.setScore(60);
        System.out.println(pupil.toString());
        Graduate graduate = new Graduate();
        graduate.name = "二蛋";
        graduate.age = 22;
        graduate.setScore(70);
        System.out.println(graduate.toString());
        graduate.gettest();

    }
}
